

/**
 * 请求工具类封装
 * @type {function(): (Password.init|init)}
 */
var Password = (function () {
    var Password = function () {
        return new Password.fn.init();
    }

    Password.fn = Password.prototype = {
        constructor: Password,
        init: function () {

        },

        /**
         * 密码加密
         * @param password
         * @returns {*|string}
         */
        encrypt: function(password) {
            return CryptoJS.enc.Base64.stringify(CryptoJS.SHA256(password));
        }
    }

    Password.fn.init.prototype = Password.fn;

    return Password;
})();

var Password = new Password();
